package com.project.xy.service.impl;

import com.project.xy.entity.DModuleDetails;
import com.project.xy.mapper.DModuleDetailsMapper;
import com.project.xy.service.DModuleDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class DModuleDetailsImpl implements DModuleDetailsService {
    @Autowired
    private DModuleDetailsMapper dModuleDetailsMapper;
    @Override
    public List<DModuleDetails> queryDModuleDetailsByProductId(String productId) {
        return dModuleDetailsMapper.queryDModuleDetailsByProductId(productId);
    }

    @Override
    public int updateByPrimaryKeySelective(DModuleDetails record) {
        return dModuleDetailsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dModuleDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DModuleDetails record) {
        return dModuleDetailsMapper.insert(record);
    }

    @Override
    public int insertSelective(DModuleDetails record) {
        return dModuleDetailsMapper.insertSelective(record);
    }

    @Override
    public DModuleDetails selectByPrimaryKey(Integer id) {
        return dModuleDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(DModuleDetails record) {
        return dModuleDetailsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<DModuleDetails> selectByParentId(Integer pid) {
        return dModuleDetailsMapper.selectByParentId(pid);
    }

    @Override
    public int deleteByPid(Integer pid) {
        return dModuleDetailsMapper.deleteByPid(pid);
    }
}
